package my.xduscorequery;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;

public class LogonActivity extends Activity {
	private EditText
		uid = null,
		psw = null;
	private  CheckBox pxy;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_logon);
        uid=(EditText)findViewById(R.id.uid);
        psw=(EditText)findViewById(R.id.psw);
        pxy=(CheckBox)findViewById(R.id.checkBox1);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_logon, menu);
        return true;
    }

    public void doQuery(View v){
    	Intent intent = new Intent(this,ShowScore.class);
    	intent.putExtra("UID", uid.getText().toString());
    	intent.putExtra("PSW", psw.getText().toString());
    	intent.putExtra("PXY", pxy.isChecked());
    	startActivity(intent);
    }
}
